package 基础学习;

import java.util.Random;

public class Rand {
    public static void main(String[] args) {
        Random r = new Random();
        int result=r.nextInt(2); // 不包含边界
        System.out.println(result);
    }
}
